/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Easy.table;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author DR.HUY
 */
@Entity
@Table(name = "Faqs", catalog = "EasyTicket", schema = "dbo")
@NamedQueries({
    @NamedQuery(name = "Faqs.findAll", query = "SELECT f FROM Faqs f"),
    @NamedQuery(name = "Faqs.findByFaqID", query = "SELECT f FROM Faqs f WHERE f.faqID = :faqID"),
    @NamedQuery(name = "Faqs.findByFaqName", query = "SELECT f FROM Faqs f WHERE f.faqName = :faqName"),
    @NamedQuery(name = "Faqs.findByQuestion", query = "SELECT f FROM Faqs f WHERE f.question = :question"),
    @NamedQuery(name = "Faqs.findByAnswer", query = "SELECT f FROM Faqs f WHERE f.answer = :answer"),
    @NamedQuery(name = "Faqs.findByStatus", query = "SELECT f FROM Faqs f WHERE f.status = :status")})
public class Faqs implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "FaqID", nullable = false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Integer faqID;
    @Basic(optional = false)
    @Column(name = "FaqName", nullable = false, length = 50)
    private String faqName;
    @Column(name = "Question", length = 500)
    private String question;
    @Column(name = "Answer", length = 500)
    private String answer;
    @Column(name = "Status", length = 10)
    private String status;

    public Faqs() {
    }

    public Faqs(Integer faqID) {
        this.faqID = faqID;
    }

    public Faqs(String faqName) {
        this.faqName = faqName;
    }

    public Integer getFaqID() {
        return faqID;
    }

    public void setFaqID(Integer faqID) {
        this.faqID = faqID;
    }

    public String getFaqName() {
        return faqName;
    }

    public void setFaqName(String faqName) {
        this.faqName = faqName;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (faqID != null ? faqID.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Faqs)) {
            return false;
        }
        Faqs other = (Faqs) object;
        if ((this.faqID == null && other.faqID != null) || (this.faqID != null && !this.faqID.equals(other.faqID))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Easy.table.Faqs[faqID=" + faqID + "]";
    }

}
